<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<tr:document xmlns="http://www.w3.org/1999/xhtml"
             xmlns:ui="http://java.sun.com/jsf/facelets"
             xmlns:h="http://java.sun.com/jsf/html"
             xmlns:f="http://java.sun.com/jsf/core"
             xmlns:tr="http://myfaces.apache.org/trinidad"
             xmlns:mias="http://www.monsters.inc/mias"
             xmlns:c="http://java.sun.com/jstl/core"
             xmlns:ox="http://myfaces.apache.org/orchestra/dynaForm">

<ui:composition template="templates/template.xhtml">
  <!--
       This page contains an edit form for editing a Kid's properties.
  -->
  <ui:define name="title">Edit employee - the dynamic way</ui:define>
  <ui:define name="content"> 
    <h:panelGrid id="employee-layout" columns="2">
      <ox:dynaForm id="employee"
                   uri="inc.monsters.mias.data.Employee"
                   valueBindingPrefix="pageFlowScope.selectedEmployee" />
    </h:panelGrid>
          <tr:panelButtonBar>
            <tr:commandButton text="#{msg.apply}" action="apply"
                              partialSubmit="true" id="btnApply"
                              actionListener="#{empsTable.saveSelected}"/>
            <tr:commandButton text="#{msg.ok}" action="ok" actionListener="#{empsTable.saveSelected}"/>
            <tr:commandButton text="#{msg.cancel}" action="cancel" immediate="true" />
          </tr:panelButtonBar>    
  </ui:define>
</ui:composition>

</tr:document>